assignment expressionの例文
- This allows chained assignment by using the value of one assignment expression as the input ( right operand ) of the next.
- It is a common mistake in C, due either to inexperience or to a simple typing error, to accidentally put assignment expressions in conditional statements such as if ( a = 10 ) { . . . }.
- Between the ? and the : there can never be a precedence conflict, so you can put anything there unparenthesized, even an assignment expression . )-- talk ) 20 : 02, 12 April 2011 ( UTC)
- The code in braces will always execute because the assignment expression a = 10 has the value 10 which is non-zero and therefore considered " true " in C; this is in part because C ( and ALGOL ) allow multiple assignment in the form a = b = c = 10; which is not supported by Pascal.